package com.niit.yhserver.mapper;

import com.niit.yhpojo.entity.Employee;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface EmployeeMapper {

    //显示全部
    List<Employee> getAllEmployee();

    //按照id进行查询
    Employee findOneById(Integer id);

    //新增员工
    void insert(Employee record);

    //更新员工
    void update(Employee employee);

    //删除员工
    void deleteById(Integer id);

}
